package com.guo.rpc.codec;

import com.guo.rpc.serialize.SerializerAlogrithm;
import com.guo.rpc.serialize.impl.FastJsonSerializeAlogrithm;

/**
 * @Author: ljguo4
 * @email: ljguo4@iflytek.com
 * @Date: 2021/7/15 19:48
 * @Description:
 * @version: 1.0
 */
public class ServiceRemoteResponse extends Packet{

    private Class resultType;

    private Object resultValue;

    public Class getResultType() {
        return resultType;
    }

    public void setResultType(Class resultType) {
        this.resultType = resultType;
    }

    public Object getResultValue() {
        return resultValue;
    }

    public void setResultValue(Object resultValue) {
        this.resultValue = resultValue;
    }

    @Override
    SerializerAlogrithm getSerializer() {
        return new FastJsonSerializeAlogrithm();
    }

    @Override
    Byte getCommand() {
        return Commnad.SERVICE_INVOKE_RESPONSE;
    }
}
